package com.xdjd.mobile.business.dao.daoservice.activity;

import com.xdjd.mobile.business.dao.mapper.activity.ActivityClockSuperviseRecordPoDao;
import com.xdjd.mobile.business.entity.model.activity.ActivityClockSuperviseRecordPo;
import net.oschina.durcframework.easymybatis.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2019/1/10 0010.
 */
@Service
public class ActivityClockSuperviseRecordPoService {

    @Autowired
    private ActivityClockSuperviseRecordPoDao activityClockSuperviseRecordPoDao;

    public int addClockBonus(Long memberId, String clockNo, Long bonus) {
        return activityClockSuperviseRecordPoDao.addClockBonus(memberId, clockNo, bonus);
    }

    public List<ActivityClockSuperviseRecordPo> findByClockNo(String clockNo) {
        return activityClockSuperviseRecordPoDao.findAll(new Query().eq("clock_no", clockNo));
    }
}
